package com.jy.service;

import com.jy.dao.UserMapper;
import com.jy.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserService {
    @Autowired
    private UserMapper userMapper;

//    用户登陆
    public User login(User user){
        return userMapper.login(user);
    }

//    查询用户信息
    public User findOne(User user){
        return userMapper.findOne(user);
    }

//    修改用户信息
    public int updateUser(User u ){
        return userMapper.updateUser(u);
    }
}
